package com.example.provider.controller.openfeign;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;


/**
 * 提供openfeign调用接口
 * @author chengjian 
 * @date 2021/6/4
 */
@RestController
public class OpenFeignController {
    /**
     * 提供nacos-consumer服务调用
     * @author mujiutian
     * @date 2021/6/4 12:01 下午
     */
    @GetMapping(value = "/test/{str}")
    public String echo(@PathVariable String str) {
        return "Hello Nacos Discovery " + str;
    }
}
